import numpy as np
import matplotlib.pyplot as plt

# 定义爱心函数
def heart_function(t):
    x = 16 * np.sin(t)**3
    y = 13 * np.cos(t) - 5 * np.cos(2*t) - 2 * np.cos(3*t) - np.cos(4*t)
    return x, y

# 生成角度
t = np.linspace(-np.pi, np.pi, 1000)
# 生成坐标
x, y = heart_function(t)

# 绘制图形
plt.figure(figsize=(8, 6))
plt.plot(x, y, color='r', linewidth=2)
plt.title('Love from Tiangong', fontsize=20)
plt.axis('off')  # 关闭坐标轴
plt.show()